import { Dictionary, SettingType } from '@/interface/Basic'
// main - recordTable
export const tableColumnDict: Dictionary<string> = {
  id: 'id',
  AAA001: '出厂编号',
  AAA1501: '操作员',
  AAA1601: '保存时间',
  AAA2001: '完成状态',
  AAA1101: '表内温度',
  AAA1201: '压力',
  AAA1301: '表内声速',
  AAA1801: '正反向',
  AAA701: '触发宽度',
  AAA801: '触发个数',
  AAA1401: '备注',
  A1: '1A原始声延时',
  B1: '1B原始声延时',
  A2: '2A原始声延时',
  B2: '2B原始声延时',
  A3: '3A原始声延时',
  B3: '3B原始声延时',
  A4: '4A原始声延时',
  B4: '4B原始声延时'
}

// main - generalSettings
export const main_settings: SettingType[] = [
  { label: '出厂编号', key: 'AAF001', value: '', type: 'input', disabled: true, unit: '' },
  {
    label: '转换器型号',
    key: 'AAF1301',
    value: '',
    type: 'input',
    disabled: true,
    unit: ''
  },
  {
    label: '通径',
    key: 'AAF701',
    value: '',
    type: 'input',
    disabled: true,
    unit: ''
  }
]
// import csv
export const first_CSV_KEYS_COMPARSION: Dictionary<string> = {
  声道1A声时: 'AAA101',
  声道1B声时: 'AAA102',
  声道2A声时: 'AAA103',
  声道2B声时: 'AAA104',
  声道3A声时: 'AAA105',
  声道3B声时: 'AAA106',
  声道4A声时: 'AAA107',
  声道4B声时: 'AAA108',
  温度: 'AAA1101',
  压力: 'AAA1201'
}
export const second_CSV_KEYS_COMPARSION: Dictionary<string> = {
  声道1A声时: 'AAB101',
  声道1B声时: 'AAB102',
  声道2A声时: 'AAB103',
  声道2B声时: 'AAB104',
  声道3A声时: 'AAB105',
  声道3B声时: 'AAB106',
  声道4A声时: 'AAB107',
  声道4B声时: 'AAB108',
  温度: 'AAB1301',
  压力: 'AAB1401'
}
export const fourth_CSV_KEYS_COMPARSION: Dictionary<string> = {
  声道1A声时: 'AAD101',
  声道1B声时: 'AAD102',
  声道2A声时: 'AAD103',
  声道2B声时: 'AAD104',
  声道3A声时: 'AAD105',
  声道3B声时: 'AAD106',
  声道4A声时: 'AAD107',
  声道4B声时: 'AAD108',
  温度: 'AAD601',
  压力: 'AAD701'
}

// first channel - AAA
export const firstChannelDict: Dictionary<string> = {
  channel: '孔位',
  origin_sound_time: '原始声时【μs】',
  actual_sound_path: '实际声程【mm】',
  origin_sound_delay: '原始声延时【μs】'
}
export const firstChannelTableData: Dictionary<string>[] = [
  // 1A 数据
  {
    static: '1A',
    AAA101: '',
    AAA201: '',
    AAA301: ''
  },
  // 1B
  {
    static: '1B',
    AAA102: '',
    AAA201: '',
    AAA302: ''
  },
  // 2A
  {
    static: '2A',
    AAA103: '',
    AAA202: '',
    AAA303: ''
  },
  // 2B
  {
    static: '2B',
    AAA104: '',
    AAA202: '',
    AAA304: ''
  },
  // 3A
  {
    static: '3A',
    AAA105: '',
    AAA203: '',
    AAA305: ''
  },
  // 3B
  {
    static: '3B',
    AAA106: '',
    AAA203: '',
    AAA306: ''
  },
  {
    static: '4A',
    AAA107: '',
    AAA204: '',
    AAA307: ''
  },
  {
    static: '4B',
    AAA108: '',
    AAA204: '',
    AAA308: ''
  }
]
export const firstChannelSettings: SettingType[] = [
  {
    label: '正反向',
    key: 'AAA1801',
    value: '',
    type: 'select',
    options: [
      { label: '正向', value: '正向' },
      { label: '反向', value: '反向' }
    ],
    disabled: false,
    unit: ''
  },
  { label: '触发宽度', key: 'AAA701', value: '', type: 'input', disabled: true, unit: '' },
  { label: '触发个数', key: 'AAA801', value: '', type: 'input', disabled: false, unit: '' },
  {
    label: '氮气',
    key: 'N2',
    value: '',
    type: 'select',
    options: [
      { label: '是', value: '是' },
      { label: '否', value: '否' }
    ],
    disabled: false,
    unit: ''
  },
  { label: '标准声速', key: 'AAA901', value: '', type: 'input', disabled: false, unit: 'm/s' },
  { label: '标准温度', key: 'AAA1001', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '表内温度', key: 'AAA1101', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '压力', key: 'AAA1201', value: '', type: 'input', disabled: false, unit: 'KPa' },
  { label: '表内声速', key: 'AAA1301', value: '', type: 'input', disabled: true, unit: 'm/s' },
  { label: '备注', key: 'AAA1401', value: '', type: 'textarea', disabled: false, unit: '' }
]

// second channel - AAB
export const secondChannelDict: Dictionary<string> = {
  channel: '孔位',
  AAB101: '原始声时【μs】',
  AAB201: '一次波【μs】',
  AAC301: '二次表【μs】',
  origin_sound_delay: '原始声延时【μs】'
}
export const secondChannelTableData: Dictionary<string>[] = [
  // 1A 数据
  {
    static: '1A',
    AAB101: '',
    AAB201: '',
    AAB301: '',
    AAB401: ''
  },
  // 1B
  {
    static: '1B',
    AAB102: '',
    AAB202: '',
    AAB302: '',
    AAB402: ''
  },
  // 2A
  {
    static: '2A',
    AAB103: '',
    AAB203: '',
    AAB303: '',
    AAB403: ''
  },
  // 2B
  {
    static: '2B',
    AAB104: '',
    AAB204: '',
    AAB304: '',
    AAB404: ''
  },
  // 3A
  {
    static: '3A',
    AAB105: '',
    AAB205: '',
    AAB305: '',
    AAB405: ''
  },
  // 3B
  {
    static: '3B',
    AAB106: '',
    AAB206: '',
    AAB306: '',
    AAB406: ''
  },
  {
    static: '4A',
    AAB107: '',
    AAB207: '',
    AAB307: '',
    AAB407: ''
  },
  {
    static: '4B',
    AAB108: '',
    AAB208: '',
    AAB308: '',
    AAB408: ''
  }
]
export const secondChannelSettings: SettingType[] = [
  {
    label: '正反向',
    key: 'AAB1601',
    value: '',
    type: 'select',
    options: [
      { label: '正向', value: '正向' },
      { label: '反向', value: '反向' }
    ],
    disabled: false,
    unit: ''
  },
  { label: '触发宽度', key: 'AAB501', value: '', type: 'input', disabled: true, unit: '' },
  { label: '触发个数', key: 'AAB601', value: '', type: 'input', disabled: false, unit: '' },
  { label: '表内温度', key: 'AAB1301', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '表内压力', key: 'AAB1401', value: '', type: 'input', disabled: false, unit: 'KPa' },
  { label: '备注', key: 'AAB701', value: '', type: 'textarea', disabled: false, unit: '' }
]

// third panel - AAC
export const thirdChannelDict: Dictionary<string> = {
  channel: '孔位',
  AAC101: '总高【mm】',
  AAC201: '外露【mm】',
  AAC301: '定位台距离【mm】',
  Length_of_Ends: '两端总长【mm】',
  Measured_sound_path: '测量声程【mm】'
}
export const thirdChannelTableData: Dictionary<string>[] = [
  // 1A 数据
  {
    static: '1A',
    AAC101: '',
    AAC201: '',
    AAC301: '',
    AAC401: '',
    AAC501: ''
  },
  // 1B
  {
    static: '1B',
    AAC102: '',
    AAC202: '',
    AAC301: '',
    AAC401: '',
    AAC501: ''
  },
  // 2A
  {
    static: '2A',
    AAC103: '',
    AAC203: '',
    AAC302: '',
    AAC402: '',
    AAC502: ''
  },
  // 2B
  {
    static: '2B',
    AAC104: '',
    AAC204: '',
    AAC302: '',
    AAC402: '',
    AAC502: ''
  },
  // 3A
  {
    static: '3A',
    AAC105: '',
    AAC205: '',
    AAC303: '',
    AAC403: '',
    AAC503: ''
  },
  // 3B
  {
    static: '3B',
    AAC106: '',
    AAC206: '',
    AAC303: '',
    AAC403: '',
    AAC503: ''
  },
  {
    static: '4A',
    AAC107: '',
    AAC207: '',
    AAC304: '',
    AAC404: '',
    AAC504: ''
  },
  {
    static: '4B',
    AAC108: '',
    AAC208: '',
    AAC304: '',
    AAC404: '',
    AAC504: ''
  }
]

// fourth panel - AAD
export const fourthChannelDict: Dictionary<string> = {
  channel: '孔位',
  AAD101: '原始声时【μs】',
  AAD301: '修正声延时【μs】',
  Actual_Sound_Path: '实际声程【mm】'
}
export const fourthChannelTableData: Dictionary<string>[] = [
  // 1A 数据
  {
    static: '1A',
    AAD101: '',
    AAD201: '',
    AAD301: ''
  },
  // 1B
  {
    static: '1B',
    AAD102: '',
    AAD202: '',
    AAD301: ''
  },
  // 2A
  {
    static: '2A',
    AAD103: '',
    AAD203: '',
    AAD302: ''
  },
  // 2B
  {
    static: '2B',
    AAD104: '',
    AAD204: '',
    AAD302: ''
  },
  // 3A
  {
    static: '3A',
    AAD105: '',
    AAD205: '',
    AAD303: ''
  },
  // 3B
  {
    static: '3B',
    AAD106: '',
    AAD206: '',
    AAD303: ''
  },
  {
    static: '4A',
    AAD107: '',
    AAD207: '',
    AAD304: ''
  },
  {
    static: '4B',
    AAD108: '',
    AAD208: '',
    AAD304: ''
  }
]
export const fourthChannelSettings: SettingType[] = [
  {
    label: '氮气',
    key: 'NN',
    value: '',
    type: 'select',
    options: [
      { label: '是', value: '是' },
      { label: '否', value: '否' }
    ],
    disabled: false,
    unit: ''
  },
  { label: '标准声速', key: 'AAD401', value: '', type: 'input', disabled: false, unit: 'm/s' },
  { label: '标准温度', key: 'AAD501', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '表内温度', key: 'AAD601', value: '', type: 'input', disabled: false, unit: '℃' },
  { label: '表内压力', key: 'AAD701', value: '', type: 'input', disabled: false, unit: 'KPa' },
  { label: '表内声速', key: 'AAD801', value: '', type: 'input', disabled: true, unit: 'm/s' }
]
